package com.cause.entiy.user;

import java.util.Date;

public class RoleMenus {
    private Integer rmid;

    private Integer rid;

    private Integer mid;

    private Date rmtime;

    private String rmbz;

    public Integer getRmid() {
        return rmid;
    }

    public void setRmid(Integer rmid) {
        this.rmid = rmid;
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public Integer getMid() {
        return mid;
    }

    public void setMid(Integer mid) {
        this.mid = mid;
    }

    public Date getRmtime() {
        return rmtime;
    }

    public void setRmtime(Date rmtime) {
        this.rmtime = rmtime;
    }

    public String getRmbz() {
        return rmbz;
    }

    public void setRmbz(String rmbz) {
        this.rmbz = rmbz;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RoleMenus other = (RoleMenus) that;
        return (this.getRmid() == null ? other.getRmid() == null : this.getRmid().equals(other.getRmid()))
            && (this.getRid() == null ? other.getRid() == null : this.getRid().equals(other.getRid()))
            && (this.getMid() == null ? other.getMid() == null : this.getMid().equals(other.getMid()))
            && (this.getRmtime() == null ? other.getRmtime() == null : this.getRmtime().equals(other.getRmtime()))
            && (this.getRmbz() == null ? other.getRmbz() == null : this.getRmbz().equals(other.getRmbz()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRmid() == null) ? 0 : getRmid().hashCode());
        result = prime * result + ((getRid() == null) ? 0 : getRid().hashCode());
        result = prime * result + ((getMid() == null) ? 0 : getMid().hashCode());
        result = prime * result + ((getRmtime() == null) ? 0 : getRmtime().hashCode());
        result = prime * result + ((getRmbz() == null) ? 0 : getRmbz().hashCode());
        return result;
    }
}